package com.lsu.chain.experiment;

/**
 * 测试类
 *
 * @Author wang suo
 * @Date 2020/11/26 0026 18:02
 * @Version 1.0
 */
public class Test {
    public static void main(String[] args) {
        AbstractChain xiShi = new XiShi();
        AbstractChain diaoChan = new DiaoChan();
        AbstractChain zhaoJun = new ZhaoJun();
        AbstractChain yuHuan = new YuHuan();
        xiShi.setNext(diaoChan);
        diaoChan.setNext(zhaoJun);
        zhaoJun.setNext(yuHuan);
        String[] strings = {"9", "11", "12", "13"};
        xiShi.handlerRequest(strings);
    }
}
